﻿#pragma once

#include <map>
#include <vector>

struct sqlite3;


// sqlite3 API包装，外部通过该类访问sqlite。
class SqliteWrap
{
public:
	SqliteWrap(const std::wstring& dbFilePath);
	~SqliteWrap();

	std::vector<std::map<std::wstring, std::wstring>> GetTableBySql(const std::wstring& sql) const;
	std::vector<std::map<std::wstring, std::wstring>> GetTableByName(const std::wstring& tableName) const;
	std::string GetColumnDataType(const std::wstring& tableName, const std::wstring& columnName) const;

private:
	sqlite3 * m_pDb;
};